import axios from 'axios'


const url = 'https://www.fastmock.site/mock/04892d4ffc0f16e3a0fd98c4a1e07a90/grouppurchasecrm'
export function getLeftData() {
    return new Promise((resolve, reject) => {
        axios.get(url + '/volume').then(item => {
            let leftData = item.data
            resolve(leftData)
        }).catch(err => {
            reject(err)
        })
    })

}

export function getRightData() {
    return new Promise((resolve, reject) => {
        axios.get(url + '/FleetInformation').then(item => {
            let rightData = item.data
            resolve(rightData)
        }).catch(err => {
            reject(err)
        })
    })

}